package cn.t.dto.user;

import cn.t.dto.order.ExcelBaseDTO;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author l
 */
@EqualsAndHashCode(callSuper = true)
@Data
@JsonIgnoreProperties(value = {"gmtModifiedStart", "gmtModifiedEnd", "gmtCreatedStart", "gmtCreatedEnd"}, allowSetters = true)
public class ImportUserRequest extends ExcelBaseDTO implements Serializable {

    @ExcelProperty(value = "*领料员名称")
    @ColumnWidth(50)
    private String individualName;

    @ExcelProperty(value = "成本中心")
    @ColumnWidth(100)
    private String costCenterName;

    private Long costCenterId;

    private Long firmId;

    private Long roleId;

    @ExcelProperty(value = "*权限组")
    @ColumnWidth(100)
    @NotNull(message = "权限组不能为空")
    private String roleName;

    @ExcelProperty(value = "*工号")
    @ColumnWidth(100)
    private String employeeCode;

    @ExcelProperty(value = "*卡号")
    @ColumnWidth(100)
    private String cardCode;

}
